\hline
$\mathit{RO}_\mathit{run}$ & {\tt uuid} & string & unique identifier/object reference \\
$\mathit{RO}_\mathit{run}$ & {\tt protocol} & console\_protocol & the protocol used by this console \\
-$\mathit{RO}_\mathit{run}$ & {\tt uri} & string & URI for the console service \\
+$\mathit{RO}_\mathit{run}$ & {\tt location} & string & URI for the console service \\
$\mathit{RO}_\mathit{run}$ & {\tt VM} & VM ref & VM to which this console is attached \\
\hline
\end{longtable}
\vspace{0.3cm}
\vspace{0.3cm}
\vspace{0.3cm}
-\subsubsection{RPC name:~get\_uri}
+\subsubsection{RPC name:~get\_location}
{\bf Overview:}
-Get the uri field of the given console.
+Get the location field of the given console.
\noindent {\bf Signature:}
-\begin{verbatim} string get_uri (session_id s, console ref self)\end{verbatim}
+\begin{verbatim} string get_location (session_id s, console ref self)\end{verbatim}
\noindent{\bf Arguments:}
/*
- * Copyright (c) 2006, XenSource Inc.
+ * Copyright (c) 2006-2007, XenSource Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
/*
- * The console class.
- *
+ * The console class.
+ *
* A console.
*/
xen_console handle;
char *uuid;
enum xen_console_protocol protocol;
- char *uri;
+ char *location;
struct xen_vm_record_opt *vm;
} xen_console_record;
/**
- * Get the uri field of the given console.
+ * Get the location field of the given console.
*/
extern bool
-xen_console_get_uri(xen_session *session, char **result, xen_console console);
+xen_console_get_location(xen_session *session, char **result, xen_console console);
/**
/*
- * Copyright (c) 2006, XenSource Inc.
+ * Copyright (c) 2006-2007, XenSource Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
{ .key = "protocol",
.type = &xen_console_protocol_abstract_type_,
.offset = offsetof(xen_console_record, protocol) },
- { .key = "uri",
+ { .key = "location",
.type = &abstract_type_string,
- .offset = offsetof(xen_console_record, uri) },
+ .offset = offsetof(xen_console_record, location) },
{ .key = "VM",
.type = &abstract_type_ref,
.offset = offsetof(xen_console_record, vm) }
}
free(record->handle);
free(record->uuid);
- free(record->uri);
+ free(record->location);
xen_vm_record_opt_free(record->vm);
free(record);
}
bool
-xen_console_get_uri(xen_session *session, char **result, xen_console console)
+xen_console_get_location(xen_session *session, char **result, xen_console console)
{
abstract_value param_values[] =
{
abstract_type result_type = abstract_type_string;
*result = NULL;
- XEN_CALL_("console.get_uri");
+ XEN_CALL_("console.get_location");
return session->ok;
}